package com.etc.service.impl;

import java.util.List;

import com.etc.entity.AsGather;
import com.etc.mapper.AsGatherMapper;
import com.etc.service.IAsGatherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 素材画板关系表Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-27
 */
@Service
public class AsGatherServiceImpl implements IAsGatherService
{
    @Autowired
    private AsGatherMapper asGatherMapper;

    /**
     * 查询素材画板关系表
     * 
     * @param id 素材画板关系表主键
     * @return 素材画板关系表
     */
    @Override
    public AsGather selectAsGatherById(Long id)
    {
        return asGatherMapper.selectAsGatherById(id);
    }

    /**
     * 查询素材画板关系表列表
     * 
     * @param asGather 素材画板关系表
     * @return 素材画板关系表
     */
    @Override
    public List<AsGather> selectAsGatherList(AsGather asGather)
    {
        return asGatherMapper.selectAsGatherList(asGather);
    }

    /**
     * 新增素材画板关系表
     * 
     * @param asGather 素材画板关系表
     * @return 结果
     */
    @Override
    public int insertAsGather(AsGather asGather)
    {
        return asGatherMapper.insertAsGather(asGather);
    }

    /**
     * 修改素材画板关系表
     * 
     * @param asGather 素材画板关系表
     * @return 结果
     */
    @Override
    public int updateAsGather(AsGather asGather)
    {
        return asGatherMapper.updateAsGather(asGather);
    }

    /**
     * 批量删除素材画板关系表
     * 
     * @param ids 需要删除的素材画板关系表主键
     * @return 结果
     */
    @Override
    public int deleteAsGatherByIds(Long[] ids)
    {
        return asGatherMapper.deleteAsGatherByIds(ids);
    }

    /**
     * 删除素材画板关系表信息
     * 
     * @param id 素材画板关系表主键
     * @return 结果
     */
    @Override
    public int deleteAsGatherById(Long id)
    {
        return asGatherMapper.deleteAsGatherById(id);
    }
}
